<?php
	echo doctype('html5');
	
	//$this->chromephp->log();
	//$this->firephp->log($activeLink);
	//$this->firephp->log(base_url().'pt/'.$activeLink);
	
	$param = array(
		'active_class'			=>'actual',
		'use_titles'			=>false,
		'container_tag_id'		=>'nav'
	);
	
	$this->fuelmenu->initialize($param);
	
	$navigationMenu = $this->fuelmenu->render($mainMenuItems,$activeLink,NULL,'basic');
?>

<html>
	
	
	
	
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo $template['title'];?></title>

	<meta name="description" 	content="" />
	<meta name="author" 		content="" />

	<?php 
		foreach ($groupLibraries as $lib) {
			$this->carabiner->display($lib,null);
		}	
		
		$this->carabiner->display();
		
		//echo $template['metadata'];
	?>
	
	<script>
		window.ajaxUrl = "<?php echo base_url('pt/School');?>";
		/*window.testUrl =*/ "<?php /*echo base_url().'en/'.$activeLink;*/ ?>";
	</script>
</head>






<body>

		<!-- Header -->
        <div id="header">
            <!-- Header. Status part -->
            <div id="header-status">
                <div class="container_12">
                    <div class="grid_8">
                    	<div class="schoolName"><?php echo anchor('Main',$school->email); ?></div>
                    </div>
                    <div class="grid_4">
                    	
                    	<?php echo anchor("School/logout","Logout",array("id"=>"logout"));?>
                    	<!--
                        <a href="" id="logout">
                        	Logout
                        </a>
                        -->
                        
                    </div>
                </div>
                <div style="clear:both;"></div>
            </div> <!-- End #header-status -->
            
            <!-- Header. Main part -->
            <div id="header-main">
                <div class="container_12">
                    <div class="grid_12">
                        <div id="logo">
                        
                        	<?php 
								echo $navigationMenu;	
							?>
                        	<!-- 
                            <ul id="nav">
                                <li><a href="">Principal</a></li>
                                <li><a href="">Ofertas</a></li>
                                <li><a href="">horarios</a></li>
                                <li id="actual"><a href="">Reservas</a></li>
                            </ul>
                            -->
                            
                        </div><!-- End. #Logo -->
                    </div><!-- End. .grid_12-->
                    <div style="clear: both;"></div>
                </div><!-- End. .container_12 -->
            </div> <!-- End #header-main -->
            <div style="clear: both;"></div>
            
        </div> <!-- End #header -->
        
        
        
        	<!-- Content -->
			<?php echo $template['body'];?>
			<!-- End #Content -->
			
           
        <!-- Footer -->
        <div id="footer">
        	<div class="container_12">
            	<div class="grid_12">
                	<!-- You can change the copyright line for your own -->
                	<p>&copy; 2012. <a href="http://www.softingal.pt" title="softingal">softingal</a></p>
        		</div>
            </div>
            <div style="clear:both;"></div>
        </div>
        <!-- End #footer -->
        
        
        
        
        
        
        
</body>







</html>